package com.cn.wanxi.mapper;

import com.cn.wanxi.entity.NewsEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper

public interface NewsMapper {
    List<NewsEntity> findAll(NewsEntity newsEntity);

    int getCount(NewsEntity newsEntity);

    int del(Integer id);

    NewsEntity findById(Integer id);

    int edit(NewsEntity newsEntity);

    int add(NewsEntity newsEntity);

}

